package com.utooo.bid.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.utooo.bid.entity.BidDocument;
import com.utooo.bid.model.CatalogVO;
import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;
import reactor.core.publisher.Flux;

import java.util.List;

public interface BidDocumentService extends IService<BidDocument> {
    BidDocument processBidDocument(String bidId);

    void generateBidCatalog(String bidId, int type);

    List<CatalogVO> getCatalogTree(String bidId, int type);

    void updateBidCatalog(String catalogId, String name, String parentId);

    void deleteBidCatalog(String catalogId);

    SseEmitter genContentByBidCatalog(String bidId, int type, int useKnowledge, String companyId);

    SseEmitter genBidContent(String bidId);

    Flux<String> genBidContentReactive(String bidId, int type, int useKnowledge, String companyId);
}